package com.ruoyi.teacher.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.student.domain.TClass;
import com.ruoyi.teacher.api.factory.TeacherServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/*
 *
 * @Author: awsister
 * @Date: 2022/12/27 0027 16:08
 */
@FeignClient(path = "teacherManagement", contextId = "teacherService", value = ServiceNameConstants.TEACHER_SERVICE, fallbackFactory = TeacherServiceFallbackFactory.class)
public interface TeacherService {
    @GetMapping("/teacherName/{name}")
    AjaxResult findTeacherByName(@PathVariable("name") String name);


}
